﻿<%@ Page Title="" Language="C#" MasterPageFile="../../../Home.Master" AutoEventWireup="true"
    CodeBehind="PesquisaEstoque.aspx.cs" Inherits="EFB.Web.telasMobile.menu.OperacoesLogisticas.PesquisaEstoque" %>
    <%@ Register src="../../MenuControl.ascx" tagname="MenuControl" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h2 class="head">Pesquisa de Estoque</h2>
    <div class="content">
    <asp:Label ID="Label1" runat="server" Text="SKU"></asp:Label>
    <br />
    <asp:TextBox ID="txtSku" runat="server"></asp:TextBox>
    <br />
    <asp:Label ID="Label2" runat="server" Text="Rastreabilidade"></asp:Label>
    <br />
    <asp:TextBox ID="txtRastreabilidade" runat="server"></asp:TextBox>
    <br />
    <asp:CheckBox ID="ckSaldo" runat="server" Text="Com saldo disponivel" />
    <br />
    <asp:CheckBox ID="ckReserva" runat="server" Text="Sem reservas" /><br />
    <asp:Button ID="Button1" runat="server" Text="Aplicar" onclick="Button1_Click" />
        <asp:GridView ID="GridView1" runat="server" CellPadding="4" 
            EnableModelValidation="True" ForeColor="#333333" GridLines="None" 
            AutoGenerateColumns="False">
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            <Columns>
                <asp:TemplateField HeaderText="SKU">
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("SKU_ID") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Descritivo">
                    <ItemTemplate>
                        <asp:Label ID="Label2" runat="server" Text='<%# Bind("DESCRITIVO") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Rastreab.">
                    <ItemTemplate>
                        <asp:Label ID="Label3" runat="server" Text='<%# Bind("RASTREABILIDADE") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Qtd.Disp.">
                    <ItemTemplate>
                        <asp:Label ID="Label4" runat="server" Text='<%# Bind("QTD_DISP") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Qtd.Prev.">
                    <ItemTemplate>
                        <asp:Label ID="Label5" runat="server" Text='<%# Bind("QTD_PREV") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Opções">
                    <ItemTemplate>
                        <table cellpadding="0" cellspacing="0">
                            <tr>
                                <td style="padding-right: 5px;"><a href="Entrada.aspx?sku=<%# Eval("SKU_ID") %>">Entrada</a></td><td>|</td>
                                <td style="padding-right: 5px;"><a href="Saida.aspx?sku=<%# Eval("SKU_ID") %>">Saída</a></td><td>|</td>
                                <td style="padding-left: 5px;"><a href="../ProgramacaoProducao/ProgramarProducao.aspx?sku=<%# Eval("SKU_ID") %>">Gerar OP</a></td>
                            </tr>                            
                        </table>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EditRowStyle BackColor="#999999" />
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" HorizontalAlign="Left" />
            <HeaderStyle BackColor="#2d2d2d" Font-Bold="True" ForeColor="#FFFFFF" HorizontalAlign="Left" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Left" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        </asp:GridView>
        <asp:Label ID="lblResultado" runat="server" Text=""></asp:Label>

</div>
<uc1:MenuControl ID="MenuControl1" runat="server" />    
</asp:Content>
